package wiki.hitime.stl.daq.bean.dto.req;

import wiki.hitime.stl.daq.bean.dto.manage.AcquisitionRuleDTO;
import wiki.hitime.stl.daq.bean.dto.manage.CheckRuleDTO;
import wiki.hitime.stl.daq.bean.dto.manage.ExecuteRuleDTO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.RequiredArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author zhangdaoping
 * @create 2019-07-23 14:45
 */
@Data
@Builder
@AllArgsConstructor
@RequiredArgsConstructor
public class ExecuteTaskAddReqDTO {

    /**
     * 执行规则
     */
    @NotNull(message = "执行规则为空")
    private ExecuteRuleDTO executeRuleDTO;

    /**
     * 采集规则
     */
    @NotNull(message = "采集规则为空")
    private AcquisitionRuleDTO acquisitionRuleDTO;

    /**
     * 检查规则
     */
    @Valid
    @NotEmpty(message = "检查规则为空")
    private List<CheckRuleDTO> checkRuleDTOList;
}
